mask out unwanted formats with if(0) {...}
authorNils Philippsen <nils@redhat.com>
Thu, 26 May 2011 20:50:57 +0000 (22:50 +0200)
committerNils Philippsen <nils@redhat.com>
Thu, 26 May 2011 20:50:57 +0000 (22:50 +0200)
premature return statements make source code checkers unhappy

babl/base/model-ycbcr.c

index 13f35818ecf0f29d168406f8dc3cce1d57a133c7..6a6370eb48d15e21835fc2bf91616767621c9351 100644 (file)
@@ -253,8 +253,10 @@ formats (void)
     babl_sampling (2, 2),
     babl_component_from_id (BABL_CR),
     NULL);
-  return;
 
+/* deactivate these for now */
+if (0)
+{
   babl_format_new (
     "name", "y'cbcr420",
     "id", BABL_YCBCR420,
@@ -301,3 +303,4 @@ formats (void)
     babl_component_from_id (BABL_CR),
     NULL);
 }
+}